package com.share.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.model.User;
import jakarta.validation.constraints.Pattern;

import java.io.IOException;
import java.net.URISyntaxException;

public interface UserService extends IService<User> {

    User isExists(String username);
    User getUserById(Long user_id);
    User getUserByPhone(String phone);

    void addUser(User user);
    void updateUser(User user);

    void setTokenToRedis(Long user_id, String token);
    void removeTokenFromRedis(Long user_id);

}
